const querystring=require('querystring');

var json=querystring.parse('{user=blur&pass=sdf&age=21}');

console.log(json);